<?php
require_once 'class/weapon.php';
require_once 'class/handgun.php';
require_once 'class/factory.php';

$factory = new Factory();
$weapon = $factory->getWeapon();
$weapon->display();